cmake_minimum_required(VERSION 2.6)
		
#Configuration du projet
project(TestBug)
set(EXECUTABLE_OUTPUT_PATH bin/${CMAKE_BUILD_TYPE})
SET(CMAKE_C_COMPILER mpicc)
SET(CMAKE_CXX_COMPILER mpicxx)

#Configuration de l'exécutable
file(
	GLOB_RECURSE
	source_files
	src/*
)
add_executable(
	main
	${source_files}
)

INSTALL(TARGETS main DESTINATION main_bug)
SET(CPACK_GENERATOR "RPM")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Alexandre MOREL") #required
 
INCLUDE(CPack)
